package com.education.auth.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 日志实体类
 */
public class BusinessDiaryVo implements Serializable {

    private static final long serialVersionUID = 561161940260302133L;

    private String id;//主键id
    private String ip;//ip地址
    private String url;//请求url地址
    private String params;//请求参数
    //@DateTimeFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;//日志记录创建时间
    private Date updateTime;//日志记录创建时间
    private String terminal;//访问终端来源(1、 PC 0、 app)
    private Long userId;//用户id
    private String userName;//用户名
    private String userPhone;//用户手机号
    private String record;//日志操作记录
    private String methodUrl;//操作方法url
    private String methodName;//操作方法名称
    private String opeType;//操作类型（1.登录 2.其他）
    private String opeTypeName;//操作类型描述（查询、添加、修改、删除、导入、导出）
    private String opeTypeValue;//操作类型描述（1查询、2添加、3修改、4删除、5导入、6导出）

    @Override
    public String toString() {
        return "BusinessDiaryVo{" +
                "id='" + id + '\'' +
                ", ip='" + ip + '\'' +
                ", url='" + url + '\'' +
                ", params='" + params + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", terminal='" + terminal + '\'' +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", record='" + record + '\'' +
                ", methodUrl='" + methodUrl + '\'' +
                ", methodName='" + methodName + '\'' +
                ", opeType='" + opeType + '\'' +
                ", opeTypeName='" + opeTypeName + '\'' +
                ", opeTypeValue='" + opeTypeValue + '\'' +
                '}';
    }

    public String getOpeTypeValue() {
        return opeTypeValue;
    }

    public void setOpeTypeValue(String opeTypeValue) {
        this.opeTypeValue = opeTypeValue;
    }

    public String getOpeTypeName() {
        return opeTypeName;
    }

    public void setOpeTypeName(String opeTypeName) {
        this.opeTypeName = opeTypeName;
    }

    public String getOpeType() {
        return opeType;
    }

    public void setOpeType(String opeType) {
        this.opeType = opeType;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getTerminal() {
        return terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }

    public String getMethodUrl() {
        return methodUrl;
    }

    public void setMethodUrl(String methodUrl) {
        this.methodUrl = methodUrl;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }


    //private Integer pageNum=0;//分页页数
    //private Integer pageSize=10;//分页大小
    //private String cTimeStart;//
    //private String cTimeEnd;//
    //private String[] selectTime;//
    //private String realAddress;//
}
